package com.bit.java;

public class Test3 {

    public static int add(int x, int y) {
        return x + y;
    }

    public static double add(double x, double y) {
        return x + y;
    }

    public static void main(String[] args) {
        //整数
        int a = 1;
        int b = 5;
        int c = add(a, b);
        System.out.println(c);

        //小数
        double m = 1.9;
        double n = 4.3;
        double h = add(n, m);
        System.out.println(h);

    }

}
